import fs from 'fs';
import DefaultConfig from './config';
// console.log('loading custom config');
export default class Config extends DefaultConfig {
	static getRedis() {
		let isInDocker = fs.existsSync('/.dockerenv');
		let host = isInDocker ? 'redis' : 'localhost';
		// console.log("redis connect", host);
		return {
			host,
			port: 6379,
		};
	}
}
